﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using zbus.net;
using zbus.json;
namespace zbus
{
    public enum MqMode
    {
        MQ     = 1<<0,
        PubSub = 1<<1,
        Memory = 1<<2,
    }

    public class Proto
    {
        public static readonly string Produce       = "produce";     
        public static readonly string Consume       = "consume";     
        public static readonly string Route         = "route";     
        public static readonly string Heartbeat     = "heartbeat";  
        public static readonly string CreateMQ      = "create_mq";
        public static readonly string Admin         = "admin";      
    }

    public class ZbusException : Exception
    {
        public ZbusException()
        {
        }

        public ZbusException(string message)
            : base(message)
        {
        }
        public ZbusException(string message, Exception inner)
            : base(message, inner)
        {
        }
    }
}
